/*
 * @Author: SakumyZ
 * @Date: 2019-02-19 18:55:12
 * @Description: 使用class关键字来定义组件
 * @Last Modified by: SakumyZ
 * @Last Modified time: 2019-02-22 17:50:04
 */
import React from 'react';

class Register extends React.Component {
  constructor() {
    super();

    this.state = {
      msg: '这是由state创建的私有数据'
    };
  }

  render() {
    return <h1 > 注册组件-- -- --{
      this.state.msg
    } </h1>;
  }

}

export default Register;